import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const information: AppRouteModule = {
  path: '/information',
  name: 'Information',
  component: LAYOUT,
  redirect: '/information/rainStationInfo',
  meta: {
    icon: 'ion:settings-outline',
    title: '信息管理',
    orderNo: 12,
  },
  children: [
    {
      path: 'rainStationInfo',
      name: 'RainStationInfo',
      meta: {
        title: '雨量站信息',
        icon: 'carbon:rain',
      },
      component: () => import('@/views/information/rainStationInfo/index.vue'),
    },
    {
      path: 'reservoirInfo',
      name: 'ReservoirInfo',
      meta: {
        title: '水库（山塘）信息',
        icon: 'solar:water-bold',
      },
      component: () => import('@/views/information/reservoirInfo/index.vue'),
    },
    {
      path: 'personnelList',
      name: 'PersonnelList',
      meta: {
        title: '山洪灾害防御责任人',
        icon: 'ion:people-outline',
      },
      component: () => import('@/views/information/personnelList/index.vue'),
    },
  ],
};

export default information;
